package com.ccmusic.entity;
/**
 * 音乐实体类
 * @author cyf
 *
 */
public class Music {
	private int mid;//音乐id
	private int tid;//音乐风格id
	private String mname;//音乐名
	private int mlike;//点赞次数
	private String url;//音乐本地地址
	private int collect;//收藏次数
	private int download;//下载次数
	
	/**
	 * 音乐名称和地址是必须的，其他不是必须的
	 * @param mname
	 * @param url
	 */
	public Music(String mname, String url) {
		super();
		this.mname = mname;
		this.url = url;
	}
	
	
	public Music(int mid, String mname, String url) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.url = url;
	}




	public Music(int tid, String mname, int mlike, String url, int collect, int download) {
		super();
		this.tid = tid;
		this.mname = mname;
		this.mlike = mlike;
		this.url = url;
		this.collect = collect;
		this.download = download;
	}


	public Music() {
		// TODO Auto-generated constructor stub
	}
	
	
	public Music(int mid, int tid, String mname,  int mlike, String url, int collect, int download) {
		super();
		this.mid = mid;
		this.tid = tid;
		this.mname = mname;
		this.mlike = mlike;
		this.url = url;
		this.collect = collect;
		this.download = download;
	}
	@Override
	public String toString() {
		return "Music [mid=" + mid + ", tid=" + tid + ", mname=" + mname + ",  mlike=" + mlike
				+ ", url=" + url + ", collect=" + collect + ", download=" + download + "]";
	}
	public int getMid() {
		return mid;
	}
	public void setMid(int mid) {
		this.mid = mid;
	}
	public int getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	public String getMname() {
		return mname;
	}
	public void setMname(String mname) {
		this.mname = mname;
	}
	
	public int getMlike() {
		return mlike;
	}
	public void setMlike(int mlike) {
		this.mlike = mlike;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getCollect() {
		return collect;
	}
	public void setCollect(int collect) {
		this.collect = collect;
	}
	public int getDownload() {
		return download;
	}
	public void setDownload(int download) {
		this.download = download;
	}
	
	
}
